package com.joinway.mobile.client;


public class JiayidaClient {

	public static void main(String[] args) throws Exception {
//		test1();
	}

//	public static void test1() throws Exception {
//		HttpClientAdaptor client = new HttpClientAdaptor();
//		
//		List<NameValuePair> nvps = Arrays.asList(new BasicNameValuePair[]{
//			new BasicNameValuePair("username", "lee1234")
//			, new BasicNameValuePair("email", "lee1234@qq.com")
//			, new BasicNameValuePair("password", "lee1234")
//			, new BasicNameValuePair("confirm_password", "lee1234")
////			, new BasicNameValuePair("extend_field1", "aa@hotmail.com")
////			, new BasicNameValuePair("extend_field2", "235656")
////			, new BasicNameValuePair("extend_field3", "12345678")
////			, new BasicNameValuePair("extend_field4", "12345678")
////			, new BasicNameValuePair("extend_field5", "13984578458")
//			, new BasicNameValuePair("act", "act_register")
//			, new BasicNameValuePair("agreement", "true")
//			
//		});
//		
////		Map<String, String> headers = new HashMap<>();
////		headers.put("User-Agent", "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.99 Safari/537.36");
////		headers.put("Referer", "http://www.jiayidagroup.com/agri/user.php");
////		headers.put("Host", "www.jiayidagroup.com");
////		headers.put("Connection", "keep-alive");
////		headers.put("Cache-Control", "max-age=0");
////		headers.put("Accept-Language", "en-US,en;q=0.8,zh-CN;q=0.6,zh;q=0.4");
////		headers.put("Accept-Encoding", "gzip, deflate, sdch");
////		headers.put("Accept", "text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8");
//		
//		String output = client.post("http://www.jiayidagroup.com/agri/user.php", nvps);
//		System.out.println(output);
//	}
}
